<?php
if (isset($_COOKIE['user_id'])) {
    setcookie('user_id', '', time() - 3600, '/');
    setcookie('role', '', time() - 3600, '/');
    setcookie('username', '', time() - 3600, '/');
}
header("Location: login.php");
exit();
?>
